#ifndef QUEUEEXP_H
#define QUEUEEXP_H

#include"experiment.h"
//
class QueueExp
{
public:
    QueueExp();

    QHash<QString,Experiment> GetQueueExps();
    QStringList GetFilePaths();
    bool RemovePath(QString filePath);//
    bool AddPath(QString filePath);//
    bool RemoveExp(QString filePath);
    bool AddExp(QString filePath,Experiment exp);
    void init();
    bool SaveQueue();
    bool SaveExp(QString filePath,Experiment exp);
    Experiment GetExp(QString filePath);
    Experiment* GetExpPtr(QString filePath);

    friend QDataStream & operator<< ( QDataStream & stream, const QueueExp & queueExp );
    friend QDataStream &	operator>> ( QDataStream & stream, QueueExp & queueExp );


    QStringList filePaths;//finish
    QHash<QString,Experiment> exps;//QString filePaths
    //QList<Experiment> exps;//每个样本都有完成标志 都完成才算完成
};
#endif // QUEUEEXP_H
